package com.icow.wms.basic.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.icow.wms.basic.mapper.LiftPeripheralMapper;
import com.icow.wms.basic.domain.LiftPeripheral;
import com.icow.wms.basic.service.ILiftPeripheralService;

/**
 * liftService业务层处理
 * 
 * @author bcs
 * @date 2024-09-02
 */
@Service
public class LiftPeripheralServiceImpl implements ILiftPeripheralService 
{
    @Autowired
    private LiftPeripheralMapper liftPeripheralMapper;

    /**
     * 查询lift
     * 
     * @param id liftID
     * @return lift
     */
    @Override
    public LiftPeripheral selectLiftPeripheralById(Long id)
    {
        return liftPeripheralMapper.selectLiftPeripheralById(id);
    }

    /**
     * 查询lift列表
     * 
     * @param liftPeripheral lift
     * @return lift
     */
    @Override
    public List<LiftPeripheral> selectLiftPeripheralList(LiftPeripheral liftPeripheral)
    {
        return liftPeripheralMapper.selectLiftPeripheralList(liftPeripheral);
    }

    /**
     * 新增lift
     * 
     * @param liftPeripheral lift
     * @return 结果
     */
    @Override
    public int insertLiftPeripheral(LiftPeripheral liftPeripheral)
    {
        return liftPeripheralMapper.insertLiftPeripheral(liftPeripheral);
    }

    /**
     * 修改lift
     * 
     * @param liftPeripheral lift
     * @return 结果
     */
    @Override
    public int updateLiftPeripheral(LiftPeripheral liftPeripheral)
    {
        return liftPeripheralMapper.updateLiftPeripheral(liftPeripheral);
    }

    /**
     * 批量删除lift
     * 
     * @param ids 需要删除的liftID
     * @return 结果
     */
    @Override
    public int deleteLiftPeripheralByIds(Long[] ids)
    {
        return liftPeripheralMapper.deleteLiftPeripheralByIds(ids);
    }

    /**
     * 删除lift信息
     * 
     * @param id liftID
     * @return 结果
     */
    @Override
    public int deleteLiftPeripheralById(Long id)
    {
        return liftPeripheralMapper.deleteLiftPeripheralById(id);
    }
}
